package One_1;

/**
 * Project Name: one_java
 * File Name: Shuixianhua
 *
 * @version 1.0
 * @author:wenerduo
 * @Date: 2022/01/02/下午 1:33
 * Copyright (c) 2022,
 */
//水仙花数
public class Shuixianhua {
    public static void main(String[] args) {
        int a ,b,c;
        for (int i=100;i<=999;i++){
            a=i/100;
            b=i/10%10;
            c=i%10;
            if(i==(a*a*a+b*b*b+c*c*c))
                System.out.println(i);
        }

    }

}
